raar.agent.process.sensor
Class RACameraSensor
java.lang.Object
raar.agent.process.RAProcess
raar.agent.process.sensor.RASensor
raar.agent.process.sensor.RARegionSensor
raar.agent.process.sensor.RARegionSensor_Pie
raar.agent.process.sensor.RACameraSensor
- All Implemented Interfaces:
- java.io.Serializable, RAAgentDependentProcess
public class RACameraSensor
- extends RARegionSensor_Pie
A sensor that models an object recognition device.
- See Also:
- Serialized Form
|
Method Summary |
java.lang.String |
explain()
Give a String that explains what the sensor does. |
RADataType |
giveSensorInformation(double currentX,
double currentY,
RAWorldObject[] objectsInRegion)
Give the sensor reading, given that the sensor's origin is at the coördinate (x,y)
and that the objects provided are within the sensor's region. |
java.lang.String |
toString()
String representation! |
| Methods inherited from class raar.agent.process.sensor.RASensor |
acceptsInput, dumpRegisters, execute, get, getAgent, getColor, getDataType, getInputNames, getInputObjects, getOutputNames, getOutputObjects, getSensorValue, isSpecial, removeReferenceToAgent, set, setAgent, setOutput, setReferenceToAgent, setSourceCode, suppliesOutput |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RACameraSensor
public RACameraSensor()
- Default constructor.
RACameraSensor
public RACameraSensor(RAAgent agent)
- Construct a sensor.
giveSensorInformation
public RADataType giveSensorInformation(double currentX,
double currentY,
RAWorldObject[] objectsInRegion)
- Give the sensor reading, given that the sensor's origin is at the coördinate (x,y)
and that the objects provided are within the sensor's region. Always provide one and
the same type of RADataType; do not return null.
toString
public java.lang.String toString()
- String representation!
- Specified by:
toString in class RASensor
explain
public java.lang.String explain()
- Give a String that explains what the sensor does.
- Specified by:
explain in class RASensor